<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<script src="lib/raphael.js" type="text/javascript" charset="utf-8"></script>
		<script src="lib/jquery-1.3.2.js" type="text/javascript" charset="utf-8"></script>
		<script src="lib/jquery.hotkeys.js" type="text/javascript" charset="utf-8"></script>
		<script src="lib/jqModal.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" href="lib/jqModal.css" type="text/css" media="screen" />
		<script src="lib/jsclass.core.2.1.2.js" type="text/javascript" charset="utf-8"></script>
		<script src="lib/jsclass.stdlib.2.1.2.js" type="text/javascript" charset="utf-8"></script>
		<script src="lib/Math.uuid.js" type="text/javascript" charset="utf-8"></script>
		<script src="lib/json2.js" type="text/javascript" charset="utf-8"></script>
		<script src="lib/parser.js" type="text/javascript" charset="utf-8"></script>

		<!-- ls | awk '{print "\t\t<script src=\"Editor/" $1 "\" type=\"text/javascript\" charset=\"utf-8\"></script>"}' -->
		<script src="Editor/0Config.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/BBox.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/DeckClose.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/DeckEdit.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/DeckSelect.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/DraggerCanvas.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/DraggerConnector.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/DraggerResize.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/Element.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/File.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/Geometry.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/Init.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/Literal.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/Namespace.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/Property.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/ResourceConnectable.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/Resource.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/Shape.js" type="text/javascript" charset="utf-8"></script>
		<script src="Editor/Util.js" type="text/javascript" charset="utf-8"></script>
		<script src="PML/Information.js" type="text/javascript" charset="utf-8"></script>
		<script src="PML/Validate.js" type="text/javascript" charset="utf-8"></script>

		<script type="text/javascript" charset="utf-8">
			window.onload = function () {
  			Editor.Init.init();
			}
		</script>
		<link rel="stylesheet" href="style.css" type="text/css" media="screen" />

	</head>
	<body>

		<div id="canvas" class="canvas"></div>

		<div id="toolbarArea">
		<div id="toolbar">
			<a href='about.php' class='abouta' ><img src='pomelo.jpg' alt='About POMELo' width='25px' class='imglink' /> <span id="logo">POMELo Editor</span>&nbsp;</a><br /><br />
			<button id="buttonNew">New</button><br />
			<button id="buttonImport">Import</button><br />
			<button id="buttonExport">Export</button><br />
			<br />
			<button id="buttonUndo">Undo</button><br />
			<button id="buttonRedo">Redo</button><br />
			<br />
			<button id="buttonAddResource" class="resource">+ Information</button><br />
			<button id="buttonAddPMLJ" class="resource">+ pmlj</button><br />
			<button id="buttonAddPMLT" class="resource">+ pmlt</button><br />
			<button id="buttonAddLiteral" class="literal">+ Literal</button><br />
			<br /><br />
			<button id="buttonValidate" class='resource'>validate</button><br />
			<div id="validation_results"></div>
			<br/><br/>
			<div id="examples">
			  <p>
			    <p class='sectiontitle'>Examples</p><br/>
			    <a href='index.html?uri=http://inference-web.org/registry/PUB/DCTrainShip.owl'><button class='buttonExample' >DC Train</button></a><br/>
			    <a href='index.html?uri=http://inference-web.org/registry/PUB/RelationalModel.owl'><button class='buttonExample' >Database book</button></a><br/>
			  </p>  
			</div>
            <br /><br />
            <!-- span id="status">0,0</span -->
		</div>
		</div>

		<div id="canvasAdd" class="canvasAdd"></div>

		<div class="jqmWindow" id="dialogAddLiteral" style="display:none">
			<b><span id="titleAddLiteral">Literal</span></b><br /><br />
			Text:<br />
			<textarea id="text" class="field"></textarea><br />
			Lang:<br />
			<input type="text" id="lang" class="field" /><br />
			Datatype:<br />
			<input type="text" id="datatype" class="field" /><br /><br />
			<button id="buttonSendAddLiteral">Send</button>
			<button id="buttonCloseAddLiteral">Close</button>
		</div>

		<div class="jqmWindow" id="dialogAddResource" style="display:none">
			<b><span id="titleAddResource">PMLP</span></b> <input type="checkbox" id="isBlank" name="isBlank" value="" /> create blank node<br /><br />
			<div id="nonBlankNodes">
			  Name:<br />
			  <input type="text" id="name" class="field" /> <br />
			  <br /><u>Namespace</u><br />
			  Prefix:<br />
			  <input type="text" id="namespacePrefix" class="field" /><br />
			  Uri:<br />
			  <input type="text" id="namespaceUri" class="field" /><br /><br />
			</div>
			<div class="pmlRadio" id="maincat" name="maincat">
			  <input type="radio" name="pmlclass" value="info" checked="checked"/> Information <input type="radio" name="pmlclass" value="source"/> Source  <input type="radio" name="pmlclass" value="inference"/> Inference Rule  <input type="radio" name="pmlclass" value="uri"/> Regular URI<br /><br />
			</div>
			<div class="pmlRadio" id="catinfo" name="catinfo">
			  <input type="radio" name="pmlclass" value="agent"/> Agent <input type="radio" name="pmlclass" value="document"/> Document <input type="radio" name="pmlclass" value="documentfragment"/> Doc. Fragment<br /><br />
			</div>
			<div class="pmlRadio" id="catagent" name="catagent">
			  <input type="radio" name="pmlclass" value="organization"/> Organization <input type="radio" name="pmlclass" value="person"/> Person <input type="radio" name="pmlclass" value="sensor"/> Sensor  <input type="radio" name="pmlclass" value="software"/> Software<br /><br />
			</div>
			<div class="pmlRadio" id="catsoftware" name="catsoftware">
			  <input type="radio" name="pmlclass" value="InferenceEngine"/> Inference Engine <input type="radio" name="pmlclass" value="WebService"/> Web Service<br /><br />
			</div>
			<div class="pmlRadio" id="catinfer" name="catinfer">
			  <input type="radio" name="pmlclass" value="declarative"/> Declarative <input type="radio" name="pmlclass" value="method"/> Method<br /><br />
			</div>
			<button id="buttonSendAddResource">Send</button>
			<button id="buttonCloseAddResource">Close</button>
		</div>
		
		<div class="jqmWindow" id="dialogAddResourceJ" style="display:none">
			<b><span id="titleAddPMLJ">PMLJ</span></b> <input type="checkbox" id="isBlankJ" name="isBlankJ" value="" /> create blank node<br /><br />
			<div id="nonBlankNodesJ">
			  Name:<br />
			  <input type="text" id="nameJ" class="field" /> <br />
			  <br /><u>Namespace</u><br />
			  Prefix:<br />
			  <input type="text" id="namespacePrefixJ" class="field" /><br />
			  Uri:<br />
			  <input type="text" id="namespaceUriJ" class="field" /><br /><br />
			</div>
			<div class="pmljRadio" id="maincatJ" name="maincatJ">
			  <input type="radio" name="pmlJclass" value="mapping" checked="checked"/> Mapping <input type="radio" name="pmlJclass" value="justification"/> JustificationElement <input type="radio" name="pmlJclass" value="nodesetlist"/> NodeSetList<br /><br />
			</div>
			<div class="pmljRadio" id="catjustif" name="catjustif">
			  <input type="radio" name="pmlJclass" value="inferencestep"/> InferenceStep <input type="radio" name="pmlJclass" value="nodeset"/> NodeSet <input type="radio" name="pmlJclass" value="query"/> Query  <input type="radio" name="pmlJclass" value="question"/> Question<br /><br />
			</div>
			
			<button id="buttonSendAddPMLJ">Send</button>
			<button id="buttonCloseAddPMLJ">Close</button>
		</div>
		
		<div class="jqmWindow" id="dialogAddResourceT" style="display:none">
			<b><span id="titleAddPMLT">PMLT</span></b> <input type="checkbox" id="isBlankT" name="isBlankT" value="" /> create blank node<br /><br />
			<div id="nonBlankNodesT">
			  Name:<br />
			  <input type="text" id="nameT" class="field" /> <br />
			  <br /><u>Namespace</u><br />
			  Prefix:<br />
			  <input type="text" id="namespacePrefixT" class="field" /><br />
			  Uri:<br />
			  <input type="text" id="namespaceUriT" class="field" /><br /><br />
			</div>
			<div class="pmltRadio" id="maincatT" name="maincatT">
			  <input type="radio" name="pmlTclass" value="belief" checked="checked"/> BeliefElement <input type="radio" name="pmlTclass" value="trust"/> TrustElement<br /><br />
			</div>
			<div class="pmltRadio" id="catbelief" name="catbelief">
			  <input type="radio" name="pmlTclass" value="floatbelief"/> FloatBelief <br /><br />
			</div>
			<div class="pmltRadio" id="floatmetric" name="cattrust">
			  <input type="radio" name="pmlTclass" value="floattrust"/> FloatTrust <br /><br />
			</div>
			  
			<button id="buttonSendAddPMLT">Send</button>
			<button id="buttonCloseAddPMLT">Close</button>
		</div>
		
		<div class="jqmWindow" id="dialogAddProperty" style="display:none">
			<b><span id="titleAddProperty">Resource</span></b><br /><br />
			Type of relation:<br />
			<select id="propertyName" name="propertyName" />
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasAbstract">pmlp:hasAbstract</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasAuthorList">pmlp:hasAuthorList</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasContent">pmlp:hasContent</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasCreationDateTime">pmlp:hasCreationDateTime</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasDataCollectionEndDateTime">pmlp:hasDataCollectionEndDateTime</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasDataCollectionStartDateTime">pmlp:hasDataCollectionStartDateTime</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasDescription">pmlp:hasDescription</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasDocument">pmlp:hasDocument</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasEncoding">pmlp:hasEncoding</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasEnglishDescriptionTemplate">pmlp:hasEnglishDescriptionTemplate</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasEscapeCharacterSequence">pmlp:hasEscapeCharacterSequence</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasFormat">pmlp:hasFormat</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasFromCol">pmlp:hasFromCol</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasFromLanguage">pmlp:hasFromLanguage</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasFromOffset">pmlp:hasFromOffset</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasFromRow">pmlp:hasFromRow</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasISBN">pmlp:hasISBN</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasInferenceEngineRule">pmlp:hasInferenceEngineRule</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasLanguage">pmlp:hasLanguage</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasLongPrettyName">pmlp:hasLongPrettyName</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasMember">pmlp:hasMember</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasMimetype">pmlp:hasMimetype</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasModificationDateTime">pmlp:hasModificationDateTime</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasName">pmlp:hasName</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasOwner">pmlp:hasOwner</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasPrettyName">pmlp:hasPrettyName</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasPrettyNameMappingList">pmlp:hasPrettyNameMappingList</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasPrettyString">pmlp:hasPrettyString</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasPublicationDateTime">pmlp:hasPublicationDateTime</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasPublisher">pmlp:hasPublisher</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasRawString">pmlp:hasRawString</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasReferenceSourceUsage">pmlp:hasReferenceSourceUsage</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasReplacee">pmlp:hasReplacee</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasRuleExample">pmlp:hasRuleExample</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasShortPrettyName">pmlp:hasShortPrettyName</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasSource">pmlp:hasSource</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasToCol">pmlp:hasToCol</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasToLanguage">pmlp:hasToLanguage</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasToOffset">pmlp:hasToOffset</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasToRow">pmlp:hasToRow</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasURL">pmlp:hasURL</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasUsageDateTime">pmlp:hasUsageDateTime</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasUsageQueryContent">pmlp:hasUsageQueryContent</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#hasVersion">pmlp:hasVersion</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#isMemberOf">pmlp:isMemberOf</option>
<option value="http://inference-web.org/2.0/pml-provenance.owl#usesInferenceEngine">pmlp:usesInferenceEngine</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#fromAnswer">pmlj:fromAnswer</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#fromAnswerOrQuery">pmlj:fromAnswerOrQuery</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#fromQuery">pmlj:fromQuery</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasAnswer">pmlj:hasAnswer</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasAnswerPattern">pmlj:hasAnswerPattern</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasAntecedentList">pmlj:hasAntecedentList</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasConclusion">pmlj:hasConclusion</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasDischarge">pmlj:hasDischarge</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasIndex">pmlj:hasIndex</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasInferenceEngine">pmlj:hasInferenceEngine</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasInferenceRule">pmlj:hasInferenceRule</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasMetaBinding">pmlj:hasMetaBinding</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasPatternNodeSet">pmlj:hasPatternNodeSet</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasSourceUsage">pmlj:hasSourceUsage</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#hasVariableMapping">pmlj:hasVariableMapping</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#isConsequentOf">pmlj:isConsequentOf</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#isExplanationOf">pmlj:isExplanationOf</option>
<optionpmlj: value="http://inference-web.org/2.0/pml-justification.owl#isFromEngine">isFromEngine</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#isQueryFor">pmlj:isQueryFor</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#mapFrom">pmlj:mapFrom</option>
<option value="http://inference-web.org/2.0/pml-justification.owl#mapTo">pmlj:mapTo</option>
<option value="http://inference-web.org/2.0/pml-trust.owl#hasBelievedInformation">pmlt:hasBelievedInformation</option>
<option value="http://inference-web.org/2.0/pml-trust.owl#hasBelievingAgent">pmlt:hasBelievingAgent</option>
<option value="http://inference-web.org/2.0/pml-trust.owl#hasTrustee">pmlt:hasTrustee</option>
<option value="http://inference-web.org/2.0/pml-trust.owl#hasTrustor">pmlt:hasTrustor</option>

			</select>
			<br /><br />
			<button id="buttonSendAddProperty">Send</button>
			<button id="buttonCloseAddProperty">Close</button>
			</div>
			
			<div class="jqmWindowBig" id="dialogExport" style="display:none">
			<b><span id="titleExport">Export</span></b><br /><br />
			<textarea id="textExport" class="fieldBig" rows="20" cols="59"></textarea><br /><br />
			<button id="buttonCloseExport">Close</button>
			</div>
			
			<div class="jqmWindowBig" id="validationWindow" style="display:none">
			<b><span id="titleExport">Issues</span></b><br /><br />
			<textarea id="textValidation" class="fieldBig" rows="20" cols="59"></textarea><br /><br />
			<button id="buttonCloseValidation">Close</button>
			</div>
			
			<div class="jqmWindow" id="dialogImport" style="display:none">
			<b><span id="titleImport">Import</span></b><br /><br />
			Indicate URI of PML: <input type="text" name="importuri" id="importuri" /><br />
			<br />
			<button id="buttonSendImport">Send</button>
			<button id="buttonCloseImport">Close</button>
		</div>

		<div class="jqmWindow" id="dialogOptions" style="display:none">
        <b><span id="titleOptions">Options</span></b>
			<br /><br />
				<table>
					<tr><td colspan="2"><u>Grid</u></td></tr>
					<tr><td width="100" align="right">size: </td><td><input type="text" id="gridSize" size="5" /></td></tr>
					<tr><td align="right">show: </td><td><input type="radio" name="gridShow" value="yes" id="gridShowYes" disabled="disabled" /> Yes 
						<input type="radio" name="gridShow" value="no" id="gridShowNo" disabled="disabled" /> No<br>
					<tr><td align="right">snap: </td><td><input type="radio" name="gridSnap" value="yes" id="gridSnapYes" disabled="disabled" /> Yes 
						<input type="radio" name="gridSnap" value="no" id="gridSnapNo" disabled="disabled" /> No<br>
					<tr><td colspan="2">&nbsp;</td></tr>
					<tr><td colspan="2"><u>Canvas</u></td></tr>
					<tr><td align="right">width: </td><td><input type="text" id="canvasWidth" size="5" /></td></tr>
					<tr><td align="right">height: </td><td><input type="text" id="canvasHeight" size="5" /></td></tr>
				</table>
            <span id="buttonToggleLangUi" class="largeButton">Toggle language ui</span>
			<br /><br />
		
			<button id="buttonSendOptions">Send</button>
			<button id="buttonCloseOptions">Close</button>
		</div>

		<div class="jqmWindow" id="dialogAbout-en" style="display:none">
			<b>About</b><br /><br />
			
			PML graphic editor is developed by <a href='http://tw.rpi.edu/wiki/Alvaro_Graves'>Alvaro Graves</a>, based on <a href="http://tesis-e.googlecode.com/svn/trunk/rdf-editor/index.html">Ernesto Krsulovic's RDF Editor</a>.<br/><br/>
			<!-- <u>Samples:</u><br /><br />
			<blockquote>
				<li><a href="index.html?sample=ida-vuelta">Go & Back</a></li>
				<li><a href="index.html?sample=ernesto-krsulovic.foaf">Foaf person</a></li>
				<li><a href="index.html?sample=spo-tiny">Subject, Predicate, Object: Tiny</a></li>
				<li><a href="index.html?sample=spo">Suject, Predicate, Object</a></li>
				<li><a href="index.html?sample=inba">School</a></li>
			</blockquote>

			<br /><br />-->
			<button class="buttonCloseAbout">Close</button>
		</div>

		<div class="jqmWindow" id="dialogAbout-es" style="display:none">
			<b>Acerca de</b><br /><br />

			Editor gráfico de PML basado en <a href="http://tesis-e.blogspot.com">RDF Editor</a><br /><br />
			<!-- <u>Ejemplos:</u><br /><br />
			<blockquote>
				<li><a href="index.html?sample=spo-tiny">Sujeto, Predicado, Objeto: Pequeño</a></li>
				<li><a href="index.html?sample=spo">Sujeto, Predicados, Objetos</a></li>
				<li><a href="index.html?sample=inba">Escuela</a></li>
				<li><a href="index.html?sample=ernesto-krsulovic.foaf">Persona foaf</a></li>
				<li><a href="index.html?sample=ida-vuelta">Ida y Vuelta</a></li>
			</blockquote>

			<br /><br />-->

			<button class="buttonCloseAbout">Cerrar</button>
		</div>
		
		
		<div class="jqmWindow" id="dialogWait" style="display:none">
			<img src='img/wait.gif' /><br />Processing, please wait
			
		</div>
            <input id='lastType' name='lastType' type='hidden' value="" />
            <span id="ruler"></span>
            <span id="spanwarnings" class="msgsaver"></span>
            <span id="spanerrors" class="msgsaver"></span>
            <span id="spanfatals" class="msgsaver"></span>
	</body>
</html>
